﻿using System;
using MessagePack.LZ4;

namespace MessagePack.Internal
{
	// Token: 0x0200006B RID: 107
	internal static class LZ4MemoryPool
	{
		// Token: 0x060001C2 RID: 450 RVA: 0x00008A17 File Offset: 0x00006E17
		public static byte[] GetBuffer()
		{
			if (LZ4MemoryPool.lz4buffer == null)
			{
				LZ4MemoryPool.lz4buffer = new byte[LZ4Codec.MaximumOutputLength(65536)];
			}
			return LZ4MemoryPool.lz4buffer;
		}

		// Token: 0x04000080 RID: 128
		[ThreadStatic]
		private static byte[] lz4buffer;
	}
}
